#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;

#define ERROR 1e-8

double w, p, ans;
double calc(double power)
{
    double v = sqrt(2.0 * power / w);
    if (v < ERROR)
    {
        return ans;
    }
    v /= sqrt(2);
    ans += v * (2 * v / 9.8);
    return calc(power * p);
}

int main()
{
    cin >> w >> p;
    w /= 100.0;
    p = (100.0 - p) / 100.0;
    cout << fixed << setprecision(3) << calc(1000.0);
    return 0;
}